package by.grsu.perovskij.page;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;


public class BasePage extends WebPage {

	@SuppressWarnings("serial")
	public BasePage() {
		super();
		add(new Link<Void>("home") {

			@Override
			public void onClick() {
				setResponsePage(HomePage.class);

			}
		});
		
		add(new Link<Void>("passengers") {

			@Override
			public void onClick() {
				setResponsePage(ListPassengersPage.class);

			}
		});		
		
		add(new Link<Void>("ticketRequests") {

			@Override
			public void onClick() {
				setResponsePage(ListTicketRequestsPage.class);

			}
		});
		
		add(new Link<Void>("bills") {

			@Override
			public void onClick() {
				setResponsePage(ListBillsPage.class);

			}
		});
		
		add(new Link<Void>("passengerWagons") {

			@Override
			public void onClick() {
				setResponsePage(ListPassengerWagonsPage.class);

			}
		});
		
		add(new Link<Void>("scheduleRecords") {

			@Override
			public void onClick() {
				setResponsePage(ListScheduleRecordsPage.class);

			}
		});
	}

	
}